const state = {
  params: {}
}

const mutations = {
  ADD_BUS_PARAMS: (state, data) => {
    state.params = data
  },
  CLEAR_BUS_PARAMS: state => {
    state.params = null
  }
}

const actions = {
  setParams({ commit }, data) {
    commit('ADD_BUS_PARAMS', data)
  },
  clearParams({ commit }) {
    commit('CLEAR_BUS_PARAMS')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
